<?php
class MysqlQuery
{
	var $_con;



	function MysqlQuery(){


	}
	

	function GetOne()
	{

	}

	function Insert($array){


		 return mysql_insert_id();

	}

	function GetAll( $sql )
	{
		$result = mysql_query($sql,$this->_con);
		if ($result !== false)
		{
			$arr = array();
			while ($row = mysql_fetch_assoc($result))
			{
				$arr[] = $row;
			}
			@mysql_free_result($result);
			return $arr;
		}
		else
		{
			return false;
		}

	}

	function Execute()
	{

	}
	
	function GetRow()
	{

	}

}
